<?php
require_once '../inc/fpdf/fpdf.php';
require_once '../inc/configuration.php';
require_once '../inc/connexion_db.php';

$sql = "SELECT raison_sociale FROM entreprises";
$req = mysqli_query($connexion_bd, $sql);

$pdf = new FPDF();



$pdf->AddPage("L", "A5");

$pdf->SetFont('Arial','IB',12);
$pdf->SetTextColor(255,0,0);
$x=0;
while($data = mysqli_fetch_assoc($req)) {
    
    $pdf->Cell(50,20, $data["raison_sociale"], 1, 1);
    
}

$pdf->Output();